package org.springblade.modules.admin.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;import org.apache.ibatis.annotations.Param;import org.springblade.modules.admin.dto.TaskPlanPageQueryDTO;import org.springblade.modules.admin.entity.MaintainTaskPlan;import org.springblade.modules.admin.vo.TaskPlanVO;import java.util.List;

public interface MaintainTaskPlanMapper extends BaseMapper<MaintainTaskPlan> {
    List<TaskPlanVO> selectTaskPlanPage(@Param("pageQuery") TaskPlanPageQueryDTO pageQuery, @Param("tenantIds") List<String> tenantIds, IPage<TaskPlanVO> page);

	TaskPlanVO selectTaskPlanDetail(@Param("id") Long id);

    List<TaskPlanVO> getTaskPlanSelectDown(@Param("tenantIds") List<String> tenantIds);

	@InterceptorIgnore(tenantLine="on")
    List<MaintainTaskPlan> getTaskPlanByElevatorIds(@Param("elevatorIds") List<Long> elevatorIds,@Param("tenantId") String tenantId);

	@InterceptorIgnore(tenantLine="on")
	MaintainTaskPlan getByIdAndTenantId(@Param("id") Long id, @Param("tenantId") String tenantId);
}
